Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backport 2.x] Added org.apache.logging.log4j:log4j-slf4j-impl to classpath (#791) #811

Closed

Conversation

Noir01
Copy link
Contributor

@Noir01 Noir01 commented Nov 2, 2023

  • Added org.apache.logging.log4j:log4j-slf4j-impl to classpath

Signed-off-by: Aniruddh [email protected]
(cherry picked from commit 62b7b4f)

Description

Fixes warning message shown when sending test message

Issues Resolved

fixes #693

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…rch-project#791)

* Added slf4j-jdk14.jar to classpath

Adding binding for SLF4J that should fix StaticLoggerBinder being not loaded.
Followed instructions from warning messages that appear.

Signed-off-by: Noir <[email protected]>

* Undid 80fc198

Removed slf4j-jdk14.jar from classpath

Signed-off-by: Aniruddh <[email protected]>

* Added org.apache.logging.log4j:log4j-slf4j-impl to classpath

Signed-off-by: Aniruddh <[email protected]>

---------

Signed-off-by: Noir <[email protected]>
Signed-off-by: Aniruddh <[email protected]>
(cherry picked from commit 62b7b4f)
Copy link

codecov bot commented Nov 2, 2023

Codecov Report

Merging #811 (fe8e003) into 2.x (cf64c41) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                2.x     #811   +/-   ##
=========================================
  Coverage     66.45%   66.45%           
  Complexity      263      263           
=========================================
  Files            39       39           
  Lines          1717     1717           
  Branches        165      165           
=========================================
  Hits           1141     1141           
  Misses          453      453           
  Partials        123      123           
Flag Coverage Δ
opensearch-notifications 66.45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

@Noir01 Noir01 changed the title Added org.apache.logging.log4j:log4j-slf4j-impl to classpath (#791) [Backport 2.x] Added org.apache.logging.log4j:log4j-slf4j-impl to classpath (#791) Nov 2, 2023
@@ -142,6 +142,8 @@ dependencies {
implementation "com.amazonaws:aws-java-sdk-ses:${aws_version}"
implementation "com.sun.mail:javax.mail:1.6.2"
implementation "javax.activation:activation:1.1"
implementation "org.slf4j:slf4j-api:${versions.slf4j}" //Needed for httpclient5
implementation "org.apache.logging.log4j:log4j-slf4j-impl:${versions.log4j}"
testImplementation(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need backport 2.x? this is need for httpclient 5, 2.x branch still using 4.x

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By my test, the error log of log4j really not seen in 2.x version, will close this backport PR, thanks!

@gaobinlong
Copy link
Collaborator

Thanks @Noir01 , I will close this backport PR because it's not needed.

@gaobinlong gaobinlong closed this Nov 3, 2023
@Noir01
Copy link
Contributor Author

Noir01 commented Nov 3, 2023

Alrighty

@Noir01 Noir01 deleted the backport/backport-791-to-2.x branch November 3, 2023 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants